<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: 15260319477
  Date: 2022/12/3
  Time: 21:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<h1>用户表格</h1>
<body><%
  List user=new ArrayList();
  user.add("zhu");
  user.add("yu妤");
  user.add("han涵");
  request.setAttribute("user",user);
%>
<table border="1" width="60">
    <c:forEach items="${requestScope.user}" var="str">
        <tr>
            <td>
                ${str}
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>